package com.liyi.letter.processing.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.liyi.letter.processing.enums.ProcessingEffectiveness;
import com.liyi.letter.processing.enums.PublicOpinion;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.util.Date;

import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author Administrator
 * @since 2023-06-16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "statistics", schema = "petition_processing")
public class Statistics implements Serializable {

    /**
     * 统计分析表id
     */
    @Id(keyType = KeyType.Auto)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 统计分析年份
     */
    private Integer year;

    /**
     * 统计分析月份
     */
    private Integer month;

    /**
     * 信访数量
     */
    private Integer letterCount;

    /**
     * 民意反映情况
     */
    private PublicOpinion publicOpinion;

    /**
     * 处理效果
     */
    private ProcessingEffectiveness processingEffectiveness;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date createdTime;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date updatedTime;

}
